home *** CD-ROM | disk | FTP | other *** search
- var i : integer;
- fn : string;
- function RemoveSlash(Input: string): string;
- begin
- if Input <> '' then
- if Input[Length(Input)] = '\' then
- Result := Copy(Input, 0, Length(Input) - 1)
- else
- Result := Input;
- end;
-
- begin
- for i := 0 to Param.count -1 do
- begin
- if pos('*',Param.strings[i]) <> 0 then
- fn := RemoveSlash(ExtractFilePath(Param.strings[i])) + '.zip' else
- fn := ChangeFileExt(Param.strings[i],'.zip');
- New(fn);
- Writeln(fn);
- Add(Param.strings[i]);
- DoAdd;
- end;
- end.